package nl.vddijssel.social.login.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class LoginViewWebImpl extends Composite implements LoginView {

	private static LoginViewWebImplUiBinder uiBinder = GWT
			.create(LoginViewWebImplUiBinder.class);
	
	private Presenter presenter;

	interface LoginViewWebImplUiBinder extends
			UiBinder<Widget, LoginViewWebImpl> {
	}

	public LoginViewWebImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField
	Button btnLogin;
	
	@UiField
	TextBox txtUsername;
	
	@UiField
	PasswordTextBox txtPassword;
	

	public LoginViewWebImpl(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiHandler("btnLogin")
	void HandleClick(ClickEvent e){
		
	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;	
	}
}
